/*
 *  (c) 2015 fullhan.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */

#ifndef _TUNING_LIB_H_
#define _TUNING_LIB_H_

/*****************************************************************************
 *  Include Section
 *  add all #include here
 *****************************************************************************/
#include <common.h>
#include <command.h>
#include <malloc.h>
#include <linux/compiler.h>
/*****************************************************************************
 * Define section
 * add all #define here
 *****************************************************************************/

struct tuning_dl_info {
	u32 tx_dl;
	u32 rx_dl;
	u32 tx_or_rx;
	char *result;
};

#define TUNING_PARSE_TX_DL_REC 0
#define TUNING_PARSE_RX_DL_REC 1
struct tuning_result_info {
	u32 tx_or_rx;
	u32 pass_mid_ret;
	u32 pass_win_len;
	u32 pass_win_st;
	u32 pass_win_ed;
	//point to st : mid : end dll ret
	struct tuning_dl_info *p_dl_st;
	struct tuning_dl_info *p_dl_mid;
	struct tuning_dl_info *p_dl_end;
};

#define TUNING_INIT_TEST_DATA	(0xdeadbeef)
#define TUNING_STATE_REC_DATA_HI	0
#define TUNING_STATE_REC_DATA_LO	1

/*****************************************************************************
 * func below..
 *****************************************************************************/

#endif